export type SearchResultType = "contact-group" | "group-chat" | "new-entry";

export type Contact = {
  id: string;
  name: string;
  group: string;
  avatar?: string;
  verified?: boolean;
};
export type GroupChat = {
  id: string;
  name: string;
  members: number;
  avatar?: string;
};

export type SearchResultItem = {
  type: SearchResultType;
  id: string;
  title: string;
  subtitle?: string;
  meta?: string;
  data?: Contact[] | GroupChat;
};
export type SearchResultListProps = {
  searchText: string;
  contacts: Contact[];
  groupChats: GroupChat[];
  isLoading?: boolean;
  onItemPress?: (item: SearchResultItem) => void;
  onAddNew?: (text: string) => void;
};
export type SearchInputProps = {
  value: string;
  onChange: (text: string) => void;
};
